local id = ID("ideplus.restart")
-- ide:GetConfig().keymap[id] = ide:GetConfig().keymap[id] or "Alt-Q" -- 快捷键注册方式1

local function iderestart(event)
  ide:GetMainFrame():AddPendingEvent(wx.wxCommandEvent(
    wx.wxEVT_COMMAND_MENU_SELECTED, ID.RESTART))
end
-- ide重启插件
return {
  name = "Restart Ide",
  description = "Restart application.",
  author = "zyl",
  version = 0.11,

  onRegister = function()
    local menu = ide:FindTopMenu("&File")
    menu:Append(id, TR("Restart")..KSC(id, "Alt-Q"),TR("Restart")..'IDE')
    ide:GetMainFrame():Connect(id, wx.wxEVT_COMMAND_MENU_SELECTED, iderestart)
  end,
  onUnRegister = function()
    ide:RemoveMenuItem(id)
  end,
}
